<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div class="brand"></div>
<div class="navbar">
	<div class="list">
	<sec:authorize ifAllGranted="READ_NOTICE">
		<a s="notice" href="javascript:XF.NAV.navTo('/notice')" class="nav">
			<span class="navicon content"></span>
			<p class="navName">内部公告</p>
		</a> 
	</sec:authorize>
	
	<sec:authorize ifAllGranted="READ_SOFT">
		<a s="soft" href="javascript:XF.NAV.navTo('/soft')" class="nav"> 
			<span class="navicon download"></span>
			<p class="navName">软件下载</p>
		</a>
	</sec:authorize>
	
	<sec:authorize ifAllGranted="READ_FAQ">
		<a s="faq" href="javascript:XF.NAV.navTo('/faq')" class="nav"> 
			<span class="navicon faq"></span>
			<p class="navName">使用帮助</p>
		</a>
	</sec:authorize>
	
	<sec:authorize ifAnyGranted="MANAGE_SITE,MANAGE_JOB,MANAGE_FEEDBACK">
		<a s="site" href="javascript:XF.NAV.navTo('/site')" class="nav"> 
			<span class="navicon siteEditor"></span>
			<p class="navName">网站装修</p>
		</a>
	</sec:authorize>
	
	<sec:authorize ifAnyGranted="MANAGE_AREA,MANAGE_MAP_SITE,MANAGE_MAP_CORE">	
		<a s="area" href="javascript:XF.NAV.navTo('/area')" class="nav"> 
			<span class="navicon area"></span>
			<p class="navName">区域管理</p>
		</a>
	</sec:authorize>
	
	<sec:authorize ifAnyGranted="MANAGE_BAR_APP,MANAGE_BAR">	
		<a s="bar" href="javascript:XF.NAV.navTo('/bar')" class="nav"> 
		<span class="navicon bar"></span>
		<p class="navName">巴枪管理</p>
		</a>
	</sec:authorize>
	
	<sec:authorize ifAnyGranted="READ_WIKI,EDIT_WIKI,AUDIT_WIKI">	
		<a s="wiki" href="javascript:XF.NAV.navTo('/wiki')" class="nav"> 
		<span class="navicon wiki"></span>
		<p class="navName">知识库</p>
		</a>
	</sec:authorize>
	
	<%
		String auths = SecurityContextHolder.getContext().getAuthentication().getAuthorities().toString();
		if(StringUtils.isNotBlank(auths)&&auths.contains("CHECK")){
			%>
				<a s="check" href="javascript:XF.NAV.navTo('/check')" class="nav"> 
					<span class="navicon check"></span>
					<p class="navName">分公司考勤</p>
				</a>
			<%
		}
	%>
	
	<sec:authorize ifAnyGranted="MANAGE_DESTIN,MANAGE_DESTIN_ALL,MANAGE_DESTIN_QUERY">	
		<a s="destin" href="javascript:XF.NAV.navTo('/destin')" class="nav"> 
			<span class="navicon destin"></span>
			<p class="navName">地址管理</p>
		</a>
	</sec:authorize>
		
	<sec:authorize ifAnyGranted="MANAGE_VISITOR,VISITOR_APPOINT">
		<a s="visitor" href="javascript:XF.NAV.navTo('/visitor')" class="nav">
			<span class="navicon visitor"></span>
			<p class="navName">访客管理</p>
		</a> 
	</sec:authorize>
	
	<sec:authorize ifAllGranted="SYSTEM">
		<a s="setting" href="javascript:XF.NAV.navTo('/setting')" class="nav"> 
			<span class="navicon setting content"></span>
			<p class="navName">系统设置</p>
		</a>
	</sec:authorize>
</div>

        <div class="hidnav">
        	<i></i>
            <div class="item">

            </div>
        </div>

</div>
<div class="usersNav">
	<p>
		您好 &bull; [  <sec:authentication property="principal.siteName" /> - <sec:authentication property="principal.name" /> ]
	</p>
	<p>
		<a href="<%=request.getContextPath()%>/j_spring_security_logout"><span id="quitSys">退出登录</span></a>
	</p>
</div>
